/**
@author		Jong Min, Lee
@date		  02/21/2014
@breif		ordinary series view

copyright(c) Tae Young Soft. All right reserved. 2014
*/
#pragma once

#include "Taurus_Util/TUTypes.h"
#include "Taurus_Viewer/ODSeriesToolbar.h"

//forward declarations
class CStudyView;

/**
@brief		odinary series view visual style
*/
namespace CODSeriesViewVisualStyle
{
  /**
  @brief		get background color of ordinary series view
  */
  COLORREF GetBkColor();

  /**
  @brief		get series toolbar height corresponding to monitor resolution type
  */
  int GetToolbarHeight(MonitorResolutionType resType);

};

// CODSeriesView
class CODSeriesView : public CWnd
{
	DECLARE_DYNAMIC(CODSeriesView)

public:
	CODSeriesView();
	virtual ~CODSeriesView();

  /**
  @brief		associate ordinary series view with study view
  @param		pStudyView pointer to study view
  */
  void SetParentStudyView(CStudyView* pStudyView);

  /**
  @brief		get associated study view
  @return		pointer to associated study view
  */
  inline CStudyView* GetParentStudyView() const
  {
    return m_pParentStudyView;
  }


private:
  /**
  @brief		arrange controls
  */
  void ArrangeControls();

private:
  //pointer to parent study view
  CStudyView* m_pParentStudyView;

  CODSeriesToolbar m_toolbar;

protected:
	DECLARE_MESSAGE_MAP()
public:
  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  afx_msg void OnDestroy();
  afx_msg void OnSize(UINT nType, int cx, int cy);
  afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};


